Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference


setProfileData

This procedure sets profile data values for the specified profile for the current user in the current session. You can use this procedure to set values or to delete a single record. Alternately, by using blank as the value for the pcProfileCode and pcProfileDataKey parameters, you can set a value for all records or delete all records.

If a rowid is passed in, then the record to set is found using the rowid, rather than using the individual profile fields. The record must already exist to be set in this way. For a client-only profile type, the rowid of the temp-table is used. Otherwise, the rowid of the database record is used. A profile type is passed in with the rowid to indicate whether it is from the temp-table of the database. If a rowid is passed in, it takes precedence over any other input parameters.

When the client cache is updated, the build cache external procedure must be run to fully build the temp-table with entries for this profile type for the current user. This ensures that entries are either updated fully into the cache or the database. This behavior also ensures that a record exists for the user for every profile code in the profile type. In this way, all the information needed to create new records in the cache is available, for example, the object numbers.

Location: af\app\afpromngrp.i

Parameters:

INPUT pcProfileTypeCode AS CHARACTER

The profile type code.

INPUT pcProfileCode AS CHARACTER

The profile code, (blank = all).

INPUT pcProfileDataKey AS CHARACTER

The profile data key, (blank = all).

INPUT prRowid AS ROWID

The rowid of profile data, if known.

INPUT pcProfileDataValue AS CHARACTER

The profile data value.

INPUT plDeleteFlag AS LOGICAL

The delete flag (YES = delete profile data).

INPUT pcSaveFlag AS CHARACTER

The save flag (SES = Session only, PER = Permanent).

Notes:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095